<%-- 
    Document   : UserLoginTest
    Created on : 16.04.2011, 15:37:39
    Author     : ain
--%>

<%@page import="javax.xml.parsers.DocumentBuilder"%>
<%@page import="javax.xml.parsers.DocumentBuilderFactory"%>
<%@page import="com.sun.org.apache.xerces.internal.dom.DocumentImpl"%>
<%@page import="org.w3c.dom.Element"%>
<%@page import="org.w3c.dom.Document"%>
<%@page import="unc.pds.data.Consts"%>
<%@page import="unc.pds.model.UserRemoteHome"%>
<%@page import="unc.pds.model.UserRemote"%>
<%@page import="unc.pds.data.RootDataBeanRemote"%>
<%@page import="unc.pds.data.RootDataBeanRemoteHome"%>
<%@page import="javax.naming.InitialContext"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>open login test</title>
    </head>
    <body>
        <%
            UserRemote user = ((UserRemoteHome)(new InitialContext()).lookup("ejb/User")).create("root");
            out.println("login: "+user.login("toor"));
        %>
    </body>
</html>
